package br.com.guiaturistico.adapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class NoticiasAdapter extends FragmentPagerAdapter{


	private List<Fragment> listaFragmentos;
	
	public NoticiasAdapter(FragmentManager fm, List<Fragment> listaFragmentos) {
		super(fm);
		
		this.listaFragmentos = listaFragmentos;

	}
	
	
	@Override
	public Fragment getItem(int indice) {
		
		return listaFragmentos.get(indice);
	}

	@Override
	public int getCount() {
		
		return listaFragmentos.size();
	}

}
